namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("RC_PROCESS")]
    public partial class RC_PROCESS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public RC_PROCESS()
        {
            RC_IN = new HashSet<RC_IN>();
            RC_OUT = new HashSet<RC_OUT>();
            RC_PARKING = new HashSet<RC_PARKING>();
            RC_PROCESS_DETAIL = new HashSet<RC_PROCESS_DETAIL>();
            RC_SAMPLING = new HashSet<RC_SAMPLING>();
            RC_UPLOADING = new HashSet<RC_UPLOADING>();
            RC_WEIGHING = new HashSet<RC_WEIGHING>();
            RC_WEIGHING_TMP = new HashSet<RC_WEIGHING_TMP>();
        }

        [Key]
        [StringLength(40)]
        public string PROCESS_ID { get; set; }

        [StringLength(40)]
        public string DETAIL_ID { get; set; }

        [StringLength(40)]
        public string CAR_ID { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(40)]
        public string TRANSPORT_ID { get; set; }

        public int STATUS { get; set; }

        public decimal? OVERLOAD_RADOM { get; set; }

        public DateTime? UPDATE_TIME { get; set; }

        public virtual PL_RC_DETAILS PL_RC_DETAILS { get; set; }

        public virtual PUB_MATERIEL PUB_MATERIEL { get; set; }

        public virtual PUB_MINE PUB_MINE { get; set; }

        public virtual PUB_SUPPLIER PUB_SUPPLIER { get; set; }

        public virtual PUB_CAR PUB_CAR { get; set; }

        public virtual PUB_TRANSPORT PUB_TRANSPORT { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_IN> RC_IN { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_OUT> RC_OUT { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_PARKING> RC_PARKING { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_PROCESS_DETAIL> RC_PROCESS_DETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_SAMPLING> RC_SAMPLING { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_UPLOADING> RC_UPLOADING { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_WEIGHING> RC_WEIGHING { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_WEIGHING_TMP> RC_WEIGHING_TMP { get; set; }
    }
}
